package com.permission.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.permission.dto.request.user.DelUserRequest;
import com.permission.dto.request.user.UserPageRequest;
import com.permission.entity.SysUserEntity;
import com.permission.message.StandardResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author xhs
 * @since 2021-08-27
 */
public interface SysUserService extends IService<SysUserEntity> {

    /**
     * 分页查询用户信息
     *
     * @return
     */
    StandardResponse queryUser(UserPageRequest userPageRequest);

    /**
     * 删除用户
     *
     * @param delUserRequest
     * @return
     */
    StandardResponse delUser(DelUserRequest delUserRequest);

    /**
     * 冻结账号
     *
     * @param delUserRequest
     * @return
     */
    StandardResponse frozenAccount(DelUserRequest delUserRequest);

    /**
     * 解冻账号
     *
     * @param delUserRequest
     * @return
     */
    StandardResponse thawAccount(DelUserRequest delUserRequest);

    /**
     * 根据登录账号查询权限
     *
     * @return
     */
    StandardResponse getUserAuthority();
}
